import request from "@/utils/request"

// 新增检查表
export function getUnitList (data) {
  return request({
    url: "/unit/list",
    method: "post",
    data
  })
}

export function getSortList (data) {
  return request({
    url: "/sort/list",
    method: "post",
    data
  })
}

export function getWarehouseList (data) {
  return request({
    url: "/warehouse/list",
    method: "post",
    data
  })
}

export function postInBoundAdd (data) {
  return request({
    url: "/inBound/add",
    method: "post",
    data
  })
}

export function postInBoundUpdate (data) {
  return request({
    url: "/inBound/update",
    method: "put",
    data
  })
}

export function getInBoundList (data) {
  return request({
    url: "/inBound/list",
    method: "post",
    data
  })
}

export function getInBoundDetail (data) {
  return request({
    url: "/inBound/detail",
    method: "post",
    data
  })
}

export function postInBoundDelete (data) {
  return request({
    url: "/inBound/delete",
    method: "delete",
    data
  })
}

export function getMaxNumber (data) {
  return request({
    url: "/inBound/getMaxNumber",
    method: "post",
    data
  })
}
